/**
 * Created by arron_Li on 18/3/26. // 课程
 */
import ajax from '@/utils/public'
// let qs = require('qs')
// 课程列表
export function addCourseList (params) {
  return ajax.fetchGet('/getCourseDetails', params)
}
// 课程分类
export function courseClassification (pageNum) {
  return ajax.fetchGet('/getCategory')
}
// 添加课程
export function addClassification (params) {
  return ajax.fetchPost('/editCourseDetails', params)
}
// 删除课程
export function deleteClassification (params) {
  return ajax.fetchPost('/delCourseDetails', params)
}
// 修改分组
export function changeClassification (params) {
  return ajax.fetchPost('/editCourseGroup', params)
}
// 上架
export function shelves (params) {
  return ajax.fetchPost('/editPutawayStatus', params)
}
// 查询商品
export function selectCourseList (params) {
  return ajax.fetchGet('/getCourseDetails', params)
}
